package com.erp.service.impl;

import com.erp.entity.Output;
import com.erp.entity.vo.CitySaleVO;
import com.erp.entity.vo.GoodsSaleVO;
import com.erp.entity.vo.OutputAndInputVO;
import com.erp.entity.vo.OutputVO;
import com.erp.mapper.OutputMapper;
import com.erp.service.OutputService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author pyj
 * @since 2020-11-07
 */
@Service
public class OutputServiceImpl implements OutputService {

    @Autowired
    private OutputMapper outputMapper;
    
    @Override
    public List<OutputVO> getAll() {
        return outputMapper.getAll();
    }

    @Override
    public int add(Output output) {
        return outputMapper.add(output);
    }

    @Override
    public int delete(Integer id) {
        return outputMapper.delete(id);
    }

    @Override
    public int update(Output output) {
        return outputMapper.update(output);
    }

    @Override
    public List<GoodsSaleVO> getGoodsSale(String start, String end) {
        return outputMapper.getGoodsSale(start, end);
    }

    @Override
    public List<CitySaleVO> getCitySalesSituation(String start, String end) {
        return outputMapper.getCitySalesSituation(start, end);
    }

    @Override
    public List<OutputAndInputVO> getOutputAndInputSituation(String start, String end) {
        return outputMapper.getOutputAndInputSituation(start, end);
    }


}
